﻿<%@ Control Language="C#" Inherits="System.Web.Mvc.ViewUserControl<KLS.PPDS.Web.Models.PublicationViewModel>" %>
<%@ Import Namespace="KLS.PPDS.Resources" %>
<%@ Import Namespace="KLS.PPDS.Utilities" %>
<%@ Import Namespace="KLS.PPDS.Utility" %>
<%@ Import Namespace="KLS.PPDS.Utility.Html" %>
<%using (Html.BeginForm("PublicationList", "Publication", FormMethod.Post, new { @class = "searchfrom" }))
  {%>
<table class="filter">
    <tr>
        
        <td>
            <%if ( CommonSession.IsUserSuperAdmin||CommonSession.IsUserEditor) 
              {%>
                <%:Html.DivActionLink(CommonString.New, "/Add", new { @class = "new-button" })%>
              <% 
              }%>            
        </td>

        <td>
            <%if (CommonSession.IsUserSuperAdminOrGraphic || CommonSession.IsUserSuperAdmin)
                      {%>
            <span>
                 <%:CommonString.Company%>
            </span>
            <span>
                <%:Html.DropDownListFor(c => c.SrchCompanyId, (SelectList)ViewData[CommonConstant.Company], CommonString.All, new {  })%>
            </span>
            <%
            }%>
           
                    <span>
                        <%:CommonString.Year%>
                    </span>
                    <span>
                        <%:Html.DropDownListFor(c => c.SrchYear, (SelectList)ViewData[CommonConstant.Year], CommonString.All, new { @class="sorted"  })%>
                    </span>
                    <span>
                        <%:CommonString.Month%>
                    </span>
                    <span>
                        <%:Html.DropDownListFor(c => c.SrchMonth, (SelectList)ViewData[CommonConstant.Month], CommonString.All, new { @class = "sorted" })%>
                    </span>
              
        </td>
    </tr>
</table>
<%}%>